const express = require('express')
const _ = require('lodash')
const cors=require('cors')
// const { stuName } = require('./stuName')
const stu = require('./stuName.js')
const app = express()
app.use(cors())
app.get('/api/rand', (req, res) => {
    const num = _.random(0, 10)
    res.send(stu.stuName(num))
})
app.listen(3020, () => {
    console.log(111)
})